#!/usr/bin/python

class User() :
    def __init__(self, socket):
        """
        store user's information
        """
        self.id = -1
        self.firstName = ""
        self.lastName = ""
        self.char_nick = ""
        self.mail = ""
        self.countryIndex = 0
        self.socket = socket

    def __str__(self) :
        #s = "====== USER ======" + "\n"
        s = "<"
        s += "id : " + str(self.id) + " | "
        s += "First name : " + self.firstName + " | "
        s += "Last name : " + self.lastName + " | "
        s += "char_nick : " + self.char_nick + " | "
        s += "mail : " + self.mail + " | "
        s += "countryIndex : " + str(self.countryIndex) + " | "
        s += "socket : " + str(self.socket) + ">\n"
        return s

